//###############
// FILE : AfterFilter.java
// WRITER : Yaron Dinur, yarondi, 200184992
// WRITER : Yuval Ran, yuvran21, 032513483
// EXERCISE : oop ex1 2011
// DESCRIPTION:
//Filters files which were last modified BEFORE a given date.
//###############

package filters;

import java.io.File;

public class BeforeFilter extends DateFilter {

	public BeforeFilter(String date) {
		super(date);
	}

	public boolean accept(File f) {
		String fDate = convertDateToString(f.lastModified());
		return (fDate.compareTo(_date) < 0);
	}

}
